<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:*');
header('Access-Control-Allow-Credentials:true');
// header('Access-Control-Allow-Headers:x-requested-with,content-type');
// $seconds_to_cache = 120;
// $ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
// header("Expires: $ts"); 
// header("Pragma: cache");
// header("Cache-Control: max-age=$seconds_to_cache");
ini_set('date.timezone','Asia/Shanghai');
// [ 应用入口文件 ]

// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');


// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';
